package cn.yllr.tomgxianghui.dao;

import cn.yllr.tomgxianghui.domain.Appointment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AppointmentMapper {
    Boolean addappoint(@Param("orderid") String orderid, @Param("customerid") String customerid, @Param("cookid") String cookid, @Param("time") String date,@Param("ReservationStatus")Integer status);

    List<Appointment> findap();
    List<Appointment> findappointbycookid(@Param("cookid") String cookid);
    List<Appointment> findappointbycid(@Param("customerid") String customerid);
    int updateorderstatusBecooker(@Param("orderid") String orderid);
    int agreeappoint(@Param("orderid") String orderid);
    int refuseappoint(String orderid);
    int reappoint(String orderid);
}
